package com.xyht.sca_s.student_manage_system.modules.welcomeNewStudent.controller;


import com.xyht.sca_s.student_manage_system.common.commonReturn.ResponseResult;
import com.xyht.sca_s.student_manage_system.modules.welcomeNewStudent.service.SmsWnsStudentLoanAmountRecordService;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.Date;

/**
 * <p>
 * 学生助学贷款金额变动记录表 前端控制器
 * </p>
 *
 * @author XYHT
 * @since 2024-04-09
 */
@RestController
@RequestMapping("/welcomeNewStudent/studentLoanAmountRecord")
public class SmsWnsStudentLoanAmountRecordController {
    @Resource
    private SmsWnsStudentLoanAmountRecordService smsWnsStudentLoanAmountRecordService;

    @ApiOperation("查询学生助学贷款变动记录")
    @GetMapping("/list")
    public ResponseResult list(@RequestParam(value = "pageNum", defaultValue = "1") Integer pageNum,
                               @RequestParam(value = "pageSize", defaultValue = "10") Integer pageSize,
                               @RequestParam(value = "type", required = false) Integer type,
                               @RequestParam(value = "orgId", required = false) Integer orgId,
                               @RequestParam(value = "startTime", required = false) Date startTime,
                               @RequestParam(value = "endTime", required = false) Date endTime,
                               @RequestParam(value = "searchStr", required = false) String searchStr) {
        return smsWnsStudentLoanAmountRecordService.list(pageNum, pageSize, type, orgId, startTime, endTime, searchStr);
    }

}

